{% extends 'base.html' %}
{% block title %}蛇年大吉{% endblock %}
{% block body %}
<div class="container">
    <div class="jumbotron">
        <h1 style="color:#e00">送祝福</h1>
        <form method="post">
            <div class="form-group">
                <textarea name="task" id="task" class="form-control" rows="3" placeholder="请输入您的留言"></textarea>
                <br>
                <button type="submit" style="width:30%" class="btn btn-outline-primary btn-lg">提交留言</button>
            </div>
        </form>
        <br>
        <hr>
        {% for article in record %}
        <h2 class="iconfont icon-pinglun" style="color:#0d8ddb">来自{{ article.name }}的留言</h2>
        <h6>{{ article.content }}</h6>
        <p></p>
        <br>
        <span class="iconfont icon-a-renyuanwode">
        留言人：{{ article.name }}&nbsp;&nbsp;时间：{{ article.date }}
    </span>
        <form action='{{ url_for("delete_message",id=article.id) }}' method="post">
            <input type="submit" value="删除" class="btn btn-outline-danger">
        </form>
        <br>
        <hr>
        {% endfor %}
    </div>
</div>
{% endblock %}